package com.example.springbootsfzy.service.sunkaixuan;


import com.example.springbootsfzy.domain.Audios;
import com.example.springbootsfzy.mapper.AudiosMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;


@Service
public class AudioService {

    @Autowired
    private AudiosMapper audiosMapper;

    public List<Audios> selectAll(){
        return audiosMapper.selectAll();
    }

    public List<Audios> selectByPrimaryKey(int id){
        return audiosMapper.selectByPrimaryKey(id);
    }

    public int deleteByPrimaryKey(int audioId){
        return audiosMapper.deleteByPrimaryKey(audioId);
    }

    public int insert(Audios record){
        return audiosMapper.insert(record);
    }

    public int insertSelective(Audios record){
        return audiosMapper.insertSelective(record);
    }

    public int updateByPrimaryKeySelective(Audios record){
        return audiosMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Audios record){
        return audiosMapper.updateByPrimaryKey(record);
    }


}